package week03.starbucks_ex;

public class MochaDecorator extends Decorator2{
    private double price=22;

    public MochaDecorator(IDrink iDrink) {
        super(iDrink);
    }
    public void setCoffee() {
        System.out.println("摩卡"+price);
    }
    public double getPrice() {
        super.getPrice();
        setCoffee();
        return price;
    }
}
